package org.meetunexpectedly.entity.vo;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Data;

/**
 * @Description: 基础分页信息
 * @Author: pupil
 * @Date: 2024/08/11 下午 9:39
 */
@Data
public class BasePage {

    private Long page = 1L; // 页数
    private Long limit = 15L; // 查询数量

    public IPage page() {
        return new Page(page == null ? 1L : this.page, limit == null ? 15L : this.limit);
    }
}
